<?php
if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}

class Home extends CI_Controller {

	function __construct() {
		parent::__construct();
		$this->load->library('parser');
	}

	function index() {
		$this->load->helper('options');
		// lebih jelasnya liat helper options
		$this->load->helper('id_date');
		// lebih jelasnya liat helper options
		$this->parser->set_title(site_title() . ' &bull; ' . site_tagline());
		$this->parser->set_desc(site_desc());

		$this->load->model('m_slider');
		$this->load->model('m_layanan');
		$this->load->model('m_klien');
		$this->load->model('m_testimoni');

		$data['slides'] 	= $this->m_slider->get_all();
		$data['services'] 	= $this->m_layanan->get_all();
		$data['clients'] 	= $this->m_klien->get_all();
		$data['testimoni'] 	= $this->m_testimoni->get_all();

		$this->parser->theme('front','home/index', $data);
	}
}